package com.zmm.common.redis.key.system;

import com.zmm.common.redis.key.RedisKey;

/**
 * @author 900045
 * @description:
 * @name SysParameterKey
 * @date By 2021-06-22 14:19:41
 */
public enum SysParameterKey implements RedisKey {
	
	/** 系统配置 key*/
	SYS_PARAMETER_KEY("sys:config:"),
	;


	private String key;

	SysParameterKey() {
		key = this.name();
	}

	SysParameterKey(String key) {
		this.key = key;
	}
	
	
	@Override
	public String getKey() {
		String suffix = getSuffix();
		if (suffix == null) {
			return key;
		}
		return new StringBuilder(this.key).append(SEPARATE).append(suffix).toString();
	}
}
